/**
 * Created by fanyu on 2018/12/6.
 */
import request from '@/utils/request'
const BASEUSER = '/consumers/tracingInfo'
const BASE = '/recharge/byId'
const BASECONSUMPTION = '/consumption/byId'
const LOGIN = '/new-login'
const LOGOUT = '/new-logout'
const BASEROLE = '/consumers/detailInfo-new'


/**
 * 用户登录
 */
export function login(loginName,password) {
  return request({
    url: `${LOGIN}`,
    method: 'post',
    params: { loginName , password }
  })
}

/**
 * 退出登录
 */
export function logout() {
  return request({
    url: `${LOGOUT}`,
    method: 'post'
  })
}
